package com.jl.jlapp.utils;

import android.hardware.Camera;

public class PermissionTools
{
  public static boolean isCameraCanUse()
  {
   boolean bool = true;
    Object localObject = null;
    try
    {
      Camera localCamera = Camera.open();
      localObject = localCamera;
      localCamera.setParameters(localCamera.getParameters());
      localObject = localCamera;
    }
    catch (Exception localException)
    {
        bool = false;
    }
    if (localObject != null) {
      ((Camera)localObject).release();
    }
    return bool;
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/utils/PermissionTools.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */